# 选择是本地数据库还是远程数据库
isLocalDB = True

# JWT 配置
SECRET_KEY = "token_key!!!^-^" 
ALGORITHM = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES = 60

# 管理员账号密码
ADMIN_CREDENTIALS = {
    "admin": "password1",
    "admin2": "password2",
}

# 数据库字典
table_name_mapping = {
    "categories": "食物类别",
    "foods": "食物信息",
    "message": "用户个人信息",
    "user": "用户账号信息",
    "user_calories": "用户热量统计",
    "meal_records": "用户餐食记录",
}

column_name_mapping = {
    "categories": {
        "id": "类别ID",
        "name": "类别名称",
    },
    "foods": {
        "id": "食物ID",
        "name": "食物名称",
        "category_id": "类别ID",
        "calories": "热量",
        "unit": "单位",
        "weight": "重量",
        "protein": "蛋白质",
        "fat": "脂肪",
        "carbs": "碳水化合物",
    },
    "message": {
        "id": "用户ID",
        "name": "姓名",
        "gender": "性别",
        "age": "年龄",
        "weight": "体重",
        "height": "身高",
    },
    "user": {
        "id": "用户ID",
        "user_pass": "用户密码",
    },
    "user_calories": {
        "id": "记录ID",
        "user_id": "用户ID",
        "date": "日期",
        "total_intake": "总摄入热量",
        "target_intake": "目标摄入热量",
        "protein": "蛋白质",
        "fat": "脂肪",
        "carbs": "碳水化合物",
        "created_at": "创建时间",
        "updated_at": "更新时间",
    },
    "meal_records": {
        "id": "记录ID",
        "user_id": "用户ID",
        "food_id": "食物ID",
        "meal_type": "餐次类型",
        "entry_time": "进食时间",
        "weight": "摄入重量",
        "calories": "热量",
        "protein": "蛋白质",
        "fat": "脂肪",
        "carbs": "碳水化合物",
        "created_at": "创建时间",
    },
}
